﻿using CrawlerFramework.ConfigEntity;
using MediaBot.Entities;
using System.Xml.Serialization;

namespace RakutenProxy.ConfigEntity
{
    [XmlRoot("config-entity")]
    public class RakutenHomeConfig : BaseConfigEntity
    {
        [XmlElement("categoryNode")]
        public MatchType CategoryNode { get; set; }

        [XmlElement("categoryName")]
        public MatchType CategoryName { get; set; }

        [XmlElement("categoryUrl")]
        public MatchType CategoryUrl { get; set; }

        [XmlElement("subCategory")]
        public SubCategory SubCategory { get; set; }
    }

    public class SubCategory
    {
         [XmlElement("subCategoryNode")]
        public MatchType SubCategoryNode { get; set; }

         [XmlElement("subCategoryName")]
        public MatchType SubCategoryName { get; set; }

         [XmlElement("subCategoryUrl")]
        public MatchType SubCategoryUrl { get; set; }
    }
}